A5Storage::SubContainer SaveItemToFile Method
Syntax
.SaveItemToFile as L (SourcePath as C, TargetPath as C)
Arguments
- SourcePathCharacter
The source path and object name in the Storage container.
- TargetPathCharacter
The destination path on the local machine (e.g. server or desktop application.)
Returns
- ResultLogical
Returns .T. if the operation succeeds, otherwise .F. (see .CallResult for additional error information.)
Description
Creates a file from an object in the Storage container.
Example
dim CallResult as CallResult dim SubContainer as A5Storage::SubContainer = null_value() CallResult = A5Storage::SubContainer::Open(SubContainer, "Provider='Disk';Container='c:\A5Webroot';", "logs") ? CallResult.Success = .T. ? SubContainer.SaveItemToFile("MyItempath/MyItem.jpg", "c:\temp\MyItem.jpg") = .T.